/* BehaviorController.cpp - implementation of BehaviorController class */

#include "BehaviorController.h"


void BehaviorController::FinishWithFailure()
{
	success = false;
	done = true;
}

void BehaviorController::FinishWithSuccess()
{
	success = true;
	done = true;
}

void BehaviorController::SafeExit()
{
	done = false;
	started = false;
	behavior->Exit();
}

void BehaviorController::SafeEnter()
{
	started = true;
	behavior->Enter();
}
